package com.sc.sso.service;

import com.sc.common.pojo.CommonResult;
import com.sc.pojo.TbUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @auther sc
 * @Date 2017/11/5
 */
public interface SsoService {
    CommonResult checkData(String param, Integer type);
    CommonResult register(TbUser user);
    CommonResult login(String username, String password, HttpServletRequest request, HttpServletResponse response);
    CommonResult getUserByToken(String token);
    CommonResult logout(String token,HttpServletRequest request,HttpServletResponse response);
}
